]> dgit.raspbian.org Git - gnome-shell.git/commit
Split ShellAppMonitor into ShellWindowTracker, ShellAppUsage
authorColin Walters <walters@verbum.org>
Thu, 15 Oct 2009 23:28:29 +0000 (19:28 -0400)
committerColin Walters <walters@verbum.org>
Tue, 20 Oct 2009 16:55:07 +0000 (12:55 -0400)
commite941e8088b0e6edb475fc7b264dabec16beb588f
treec249c9bf7d90343a70c37a63b7515a0a4aefd983
parent77cf9ae077940ca22bf057903e888bded32de76f
Split ShellAppMonitor into ShellWindowTracker, ShellAppUsage

The two parts were mapping windows to applications, and
recording application usage statistics.  The latter part
(now called ShellAppUsage) is much more naturally built on top of
the former (now called ShellWindowTracker).

ShellWindowTracker retains the startup-notification handling.

ShellWindowTracker also gains a focus-app property, which is
what most things in the shell UI are interested in (instead of
window focus).

ShellAppSystem moves to exporting ShellApp from more of its
public API, rather than ShellAppInfo.  ShellAppSystem also
ensures that ShellApp instances are unique by holding
a hash on the ids.

ShellApp's private API is split off into a shell-app-private.h,
so shell-app.h can be included in shell-app-system.h.

Favorites handling is removed from ShellAppSystem, now inside
appFavorites.js.

Port all of the JavaScript for these changes.

https://bugzilla.gnome.org/show_bug.cgi?id=598646
20 files changed:
js/ui/altTab.js
js/ui/appDisplay.js
js/ui/appFavorites.js [new file with mode: 0644]
js/ui/appIcon.js
js/ui/main.js
js/ui/panel.js
js/ui/widget.js
js/ui/workspaces.js
src/Makefile.am
src/shell-app-monitor.c [deleted file]
src/shell-app-monitor.h [deleted file]
src/shell-app-private.h [new file with mode: 0644]
src/shell-app-system.c
src/shell-app-system.h
src/shell-app-usage.c [new file with mode: 0644]
src/shell-app-usage.h [new file with mode: 0644]
src/shell-app.c
src/shell-app.h
src/shell-window-tracker.c [new file with mode: 0644]
src/shell-window-tracker.h [new file with mode: 0644]